package general;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;

import com.thoughtworks.selenium.Selenium;
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;

import constants.ConfigurationConstants;
import constants.DataProviderConstants;
import constants.UrlConstants;

public class TestCore {

	protected WebDriver driver;
	public Selenium selenium;

	@BeforeMethod
	public void startSelenium() {

		driver = WebDriverUtil.getFirefoxDriver();
		
		selenium = new WebDriverBackedSelenium(driver, LoadPropertiesUtil
				.getInstance().getProperty(UrlConstants.IP_SERVER));
		
	}

	@AfterMethod
	public void stopSelenium() {
		driver.close();
	}


}
